<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <title>Introduction  &middot; 二三</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1">


<meta name="description" content="" />

<meta name="keywords" content="">

<link rel="author" href="http://plus.google.com/+Myprofile">


<meta property="og:title" content="Introduction  &middot; 二三 ">
<meta property="og:site_name" content="二三"/>
<meta property="og:url" content="https://idersan.github.io/2016/04/21/introduction/" />
<meta property="og:locale" content="zh-CN">


<meta property="og:type" content="article" />
<meta property="og:description" content=""/>
<meta property="og:article:published_time" content="2016-04-21T02:50:28&#43;02:00" />
<meta property="og:article:modified_time" content="2016-04-21T02:50:28&#43;02:00" />

  

  
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@Myprofile" />
<meta name="twitter:creator" content="@Myprofile" />
<meta name="twitter:title" content="Introduction" />
<meta name="twitter:description" content="" />
<meta name="twitter:url" content="https://idersan.github.io/2016/04/21/introduction/" />
<meta name="twitter:domain" content="https://idersan.github.io">
  

<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "Article",
    "headline": "Introduction",
    "author": {
      "@type": "Person",
      "name": "http://profiles.google.com/+Myprofile?rel=author"
    },
    "datePublished": "2016-04-21",
    "description": "",
    "wordCount": 337
  }
</script>



<link rel="canonical" href="https://idersan.github.io/2016/04/21/introduction/" />
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="https://idersan.github.io/touch-icon-144-precomposed.png">
<link rel="icon" href="https://idersan.github.io/favicon.png">
<meta name="generator" content="Hugo 0.21-DEV" />

  <!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.2/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->



    <link rel="stylesheet" href="https://idersan.github.io/css/bootswatch/paper/bootstrap.min.css">


<link rel="stylesheet" href="https://idersan.github.io/css/font-awesome.min.css">
<link rel="stylesheet" href="https://idersan.github.io/css/style.css">


  <link rel="stylesheet" href="https://idersan.github.io/css/highlight/default.css">


</head>
<body class="map[name:paper]" data-ng-app="myapp" data-ng-controller="MyController" data-ng-mouseleave="MouseLeave($event)">
    <header id="main-header">
  <nav class="navbar navbar-default navbar-fixed-top">
    <div class="container">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        
          
          <a class="navbar-brand-img" href="https://idersan.github.io/">
            <img alt="二三" src="https://idersan.github.io/images/brandimg.jpg">
            
          </a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav navbar-right">
            
            
            <li class="">

              <a href="https://idersan.github.io/post/" >
                <i class='fa fa-list'></i>
                博客
              </a>
            </li>
            
            <li class="">

              <a href="https://idersan.github.io/categories/" >
                <i class='fa fa-folder-open'></i>
                分类
              </a>
            </li>
            
            <li class="">

              <a href="https://idersan.github.io/tags/" >
                <i class='fa fa-tags'></i>
                标签
              </a>
            </li>
            
            <li class="">

              <a href="https://idersan.github.io/page/about-me" >
                <i class='fa fa-info-circle'></i>
                关于我
              </a>
            </li>
            
          </ul>
        </div>
        
      </div>
    </nav>
  </header>


<div class="container">
  <div class="row">
    <div class="col-sm-9">
      <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
  <div class="text-center">

    <h1>Introduction
</h1>

    <div class="metas">
<small>
  <i class="fa fa-calendar"></i>
  <time datetime="2016-04-21">21 Apr, 2016</time>
</small>


  <small>
  &middot; Read in about 2 min
  &middot; (337 words)
</small>


<div class="margin-10">

</div>
<br>
</div>

  </div>
</div>

      <div class="content">
  

<p>Hugo is written in <a href="http://golang.org/">Go</a> with support for multiple platforms.</p>

<p>The latest release can be found at <a href="https://github.com/spf13/hugo/releases">Hugo Releases</a>.
We currently provide pre-built binaries for
<i class="fa fa-windows"></i>&nbsp;Windows,
<i class="fa fa-linux"></i>&nbsp;Linux,
<i class="fa freebsd-19px"></i>&nbsp;FreeBSD
and <i class="fa fa-apple"></i>&nbsp;OS&nbsp;X (Darwin)
for x64, i386 and ARM architectures.</p>

<p>Hugo may also be compiled from source wherever the Go compiler tool chain can run, e.g. for other operating systems including DragonFly BSD, OpenBSD, Plan&nbsp;9 and Solaris.  See <a href="http://golang.org/doc/install/source">http://golang.org/doc/install/source</a> for the full set of supported combinations of target operating systems and compilation architectures.</p>

<h2 id="installing-hugo-binary">Installing Hugo (binary)</h2>

<p>Installation is very easy. Simply download the appropriate version for your
platform from <a href="https://github.com/spf13/hugo/releases">Hugo Releases</a>.
Once downloaded it can be run from anywhere. You don&rsquo;t need to install
it into a global location. This works well for shared hosts and other systems
where you don&rsquo;t have a privileged account.</p>

<p>Ideally, you should install it somewhere in your <code>PATH</code> for easy use.
<code>/usr/local/bin</code> is the most probable location.</p>

<p>On OS&nbsp;X, if you have <a href="http://brew.sh/">Homebrew</a>, installation is even
easier: just run <code>brew update &amp;&amp; brew install hugo</code>.</p>

<p>For a more detailed explanation follow the corresponding installation guides:</p>

<ul>
<li><a href="">Installation on OS X</a></li>
<li><a href="">Installation on Windows</a></li>
</ul>

<h3 id="installing-pygments-optional">Installing Pygments (optional)</h3>

<p>The Hugo executable has one <em>optional</em> external dependency for source code highlighting (Pygments).</p>

<p>If you want to have source code highlighting using the <a href="https://idersan.github.io/extras/highlighting/">highlight shortcode</a>,
you need to install the Python-based Pygments program. The procedure is outlined on the <a href="http://pygments.org/">Pygments home page</a>.</p>

<h2 id="upgrading-hugo">Upgrading Hugo</h2>

<p>Upgrading Hugo is as easy as downloading and replacing the executable you’ve
placed in your <code>PATH</code>.</p>

<h2 id="installing-from-source">Installing from source</h2>

<h3 id="prerequisite-tools-for-downloading-and-building-source-code">Prerequisite tools for downloading and building source code</h3>

<ul>
<li><a href="http://git-scm.com/">Git</a></li>
<li><a href="http://golang.org/">Go</a> 1.5+</li>
</ul>

<h3 id="get-directly-from-github">Get directly from GitHub</h3>

<pre><code>$ export GOPATH=$HOME/go
$ go get -v github.com/spf13/hugo
</code></pre>

<p><code>go get</code> will then fetch Hugo and all its dependent libraries to your
<code>$GOPATH/src</code> directory, and compile everything into the final <code>hugo</code>
(or <code>hugo.exe</code>) executable, which you will find sitting in the
<code>$GOPATH/bin/</code> directory, all ready to go!</p>

<p>You may run <code>go get</code> with the <code>-u</code> option to update Hugo&rsquo;s dependencies:</p>

<pre><code>$ go get -u -v github.com/spf13/hugo
</code></pre>

<h2 id="contributing">Contributing</h2>

<p>Please see the <a href="https://idersan.github.io/doc/contributing/">contributing guide</a>.</p>

</div>


      <footer>
  <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
      
  
    <nav><ul class="pager">
    

    
      <li class="next">
        <a href="https://idersan.github.io/2016/04/24/what-is-hugo/" title="What is Hugo?">
            下一章 <span aria-hidden="true">&rarr;</span>
        </a>
      </li>
    
    </ul> </nav>
  


</div>

  <div class="col-xs-12 col-sm-12 col-md-9 col-lg-9">
  
<div id="cloud-tie-wrapper" class="cloud-tie-wrapper"></div>
<script>
  var cloudTieConfig = {
    url: document.location.href, 
    sourceId: "",
    productKey: "c4cd25e250584e1fa12608cb72836d5d",
    target: "cloud-tie-wrapper"
  };
</script>
<script src="https://img1.cache.netease.com/f2e/tie/yun/sdk/loader.js"></script>

</div>

</footer>

    </div>
    
      <div class="col-xs-12 col-sm-12 col-md-3 col-lg-3">
        <div>
  

    <div class="section">
      <header><div class="title"><b>最近更新</b></div></header>
      <div class="content">
        <ul>
        
          <li>
          <a href="https://idersan.github.io/2017/05/08/getting-started-with-hugo/">Getting Started with Hugo</a>
          </li>
        
          <li>
          <a href="https://idersan.github.io/2017/05/08/how-to-use-hexo-build-a-blog/">how to use hexo build a blog</a>
          </li>
        
          <li>
          <a href="https://idersan.github.io/2016/04/24/what-is-hugo/">What is Hugo?</a>
          </li>
        
          <li>
          <a href="https://idersan.github.io/2016/04/21/introduction/">Introduction</a>
          </li>
        
          <li>
          <a href="https://idersan.github.io/post/">Posts</a>
          </li>
        
        </ul>
      </div>
    </div>
    
    
      
      
      <div class="section taxonomies">
        <header><div class="title">
          
              <b>分类(3)</b></div>
          
          
          
          </header>
        <div class="content">
          <ul>
            <li><a href="https://idersan.github.io/categories/development">development</a></li><li><a href="https://idersan.github.io/categories/golang">golang</a></li><li><a href="https://idersan.github.io/categories/%E5%8D%9A%E5%AE%A2">博客</a></li>
          </ul>
        </div>
      </div>
      
    
      
      
      <div class="section taxonomies">
        <header><div class="title">
          
          
              <b>标签(5)</b></div>          
          
          
          </header>
        <div class="content">
          <ul>
            <li><a href="https://idersan.github.io/tags/development">development</a></li><li><a href="https://idersan.github.io/tags/go">go</a></li><li><a href="https://idersan.github.io/tags/golang">golang</a></li><li><a href="https://idersan.github.io/tags/hexo">hexo</a></li><li><a href="https://idersan.github.io/tags/hugo">hugo</a></li>
          </ul>
        </div>
      </div>
      
    
      
      
      <div class="section taxonomies">
        <header><div class="title">
          
          
          
              <b>主题(2)</b></div>
          
          </header>
        <div class="content">
          <ul>
            <li><a href="https://idersan.github.io/topics/hexo-blog">hexo-blog</a></li><li><a href="https://idersan.github.io/topics/topic-1">topic-1</a></li>
          </ul>
        </div>
      </div>
      
    

</div>

      </div>
    
  </div>
</div>
      
<footer class="footer hidden-print">
  <div class="container">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
           <div class="pull-left">
  <a class="toplink" href="javascript:" id="return-to-top">回到顶部</a>
</div>
<div class="pull-right">

</div>

        </div>
        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 text-center">
              
    
<div class="container footline">
    <small>
  code with <i class='fa fa-heart'></i>

</small>
</div>


    
<div class="container copyright">
    <small>
  &copy; 2017 Copyright 二三

  </small>
</div>



        </div>
    </div>
  </div>
</footer>

    

<script src="//s3.amazonaws.com/mailmunch/static/site.js" id="mailmunch-script" data-mailmunch-site-id="" async="async"></script>



<script src="//load.sumome.com/" data-sumo-site-id="" async="async"></script>

<script src="https://idersan.github.io/js/jquery.min.js"></script>
<script src="https://idersan.github.io/js/bootstrap.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
<script src="https://idersan.github.io/js/popover/angular-storage.min.js"></script>


<script type="text/javascript">
  (function() {
    
    
    if (window.location.hostname == "localhost")
      return;

    
    
    
  })();
  $('#return-to-top').click(function() {      
    $('body,html').animate({
        scrollTop : 0                       
    }, 500);
});
</script>


<script src="https://idersan.github.io/js/highlight.pack.js"></script>
<script src="https://idersan.github.io/js/site.js"></script>
<script>hljs.initHighlightingOnLoad();</script>


<script>
  var _gaq=[['_setAccount','Your Google Analytics tracking code'],['_trackPageview']];
  (function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
  g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
  s.parentNode.insertBefore(g,s)}(document,'script'));
</script>

<script>
var ENABLE_POPOVER =  true ; 
var EXPIRE_COOKIE =  5 ; 
var SHOW_MODAL_TIMEOUT =  10000 ; 
var MOUSE_LEAVE =  true ; 
var MODAL_SIZE = ""; 
var POST_URL = "https://zapier.com/hooks/catch/1227563/"; 
var SIGNUP_HEADER = "Join Our Newsletter";
var HEADER_IMAGE = "http://placehold.it/1000x600";
var IMG_DESCRIPTION = "Placeholder image for this popover modal optin form";
var SIGNUP_TEXT = "Signup today for free and be the first to get notified on new updates.";
var INPUT_PLACEHOLDER = "Enter your email";
var SUBMIT_BUTTON = "Subscribe";
var SUCCESS_MESSAGE = "Thanks for your subscription!";
var ERROR_MESSAGE = "Submitting form failed!";
var OPTIN =  true ;
var COOKIE_NAME = "mycookie1";
</script>
<script src="https://idersan.github.io/js/popover/angular-modal-service.min.js"></script>
<script src="https://idersan.github.io/js/angular-ismobile.min.js"></script>
<script src="https://idersan.github.io/js/popover/popover.min.js"></script>

  </body>
</html>

